package payroll25.trans;

import payroll25.Employee;
import payroll25.PayrollDatabase;
import payroll25.Transaction;

public abstract class ChangeEmployeeTransaction implements Transaction{
    private int empId;
    
    public ChangeEmployeeTransaction(int empId) {
        this.empId = empId;
    }

    @Override
    public void execute() {
        Employee e = PayrollDatabase.getEmployee(empId);
        doChange(e);
    }

    protected abstract void doChange(Employee e);

}
